home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 March / PCWMAR09.iso / Software / Freeware / Adobe Media Player 1.6 / adobe_media_player.air / AMP.swf / scripts / mx / events / SandboxMouseEvent.as < prev    next >
Encoding:
Text File  |  2008-11-25  |  1.8 KB  |  54 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class SandboxMouseEvent extends Event
  9.    {
  10.       mx_internal static const VERSION:String = "3.2.0.3958";
  11.       
  12.       public static const CLICK_SOMEWHERE:String = "clickSomewhere";
  13.       
  14.       public static const DOUBLE_CLICK_SOMEWHERE:String = "coubleClickSomewhere";
  15.       
  16.       public static const MOUSE_DOWN_SOMEWHERE:String = "mouseDownSomewhere";
  17.       
  18.       public static const MOUSE_MOVE_SOMEWHERE:String = "mouseMoveSomewhere";
  19.       
  20.       public static const MOUSE_UP_SOMEWHERE:String = "mouseUpSomewhere";
  21.       
  22.       public static const MOUSE_WHEEL_SOMEWHERE:String = "mouseWheelSomewhere";
  23.       
  24.       public var buttonDown:Boolean;
  25.       
  26.       public var altKey:Boolean;
  27.       
  28.       public var ctrlKey:Boolean;
  29.       
  30.       public var shiftKey:Boolean;
  31.       
  32.       public function SandboxMouseEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:Boolean = false, param5:Boolean = false, param6:Boolean = false, param7:Boolean = false)
  33.       {
  34.          super(param1,param2,param3);
  35.          this.ctrlKey = param4;
  36.          this.altKey = param5;
  37.          this.shiftKey = param6;
  38.          this.buttonDown = param7;
  39.       }
  40.       
  41.       public static function marshal(param1:Event) : SandboxMouseEvent
  42.       {
  43.          var _loc2_:Object = param1;
  44.          return new SandboxMouseEvent(_loc2_.type,_loc2_.bubbles,_loc2_.cancelable,_loc2_.ctrlKey,_loc2_.altKey,_loc2_.shiftKey,_loc2_.buttonDown);
  45.       }
  46.       
  47.       override public function clone() : Event
  48.       {
  49.          return new SandboxMouseEvent(type,bubbles,cancelable,ctrlKey,altKey,shiftKey,buttonDown);
  50.       }
  51.    }
  52. }
  53.  
  54.